package com.genius;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.scheduling.annotation.EnableScheduling;

//首先要将spring boot自带的DataSourceAutoConfiguration禁掉，因为它会读取application.properties文件的spring.datasource.*属性并自动配置单数据源。在@SpringBootApplication注解中添加exclude属性即可：
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class}) 
@EnableScheduling
@MapperScan(basePackages = "com.genius.reservation.mapper")
public class unite_platformApplication  extends SpringBootServletInitializer {
	@Override

	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
		return application.sources(unite_platformApplication.class);
	}
	
	public static void main(String[] args) {
		SpringApplication.run(unite_platformApplication.class, args);
	}

}




